package mall.dao;

import mall.model.Admin;

import java.util.List;

/*
 *
 * @author Yonni
 * @version 1.8.0_201
 * @date 2020-05-27 18:23
 *
 * */
public interface AdminDao {
    Admin login(Admin admin);

    List<Admin> allAdmins();

    List<Admin> getSearchAdmins(Admin admin);

    void deleteAdmin(String id);

    Admin getAdminsInfo(String id);

    Admin getSearchAdminByEmail(Admin admin);

    int addAdmin(Admin admin);

    void updateAdmin(Admin admin);
}
